import request, { request1 } from "@/services";

// 获取歌曲详情
export const getSongDownloadAPI = (ids: string | number) => {
  return request.get<any>({
    url: "/song/detail",
    params: {
      ids,
    },
  });
};

// 获取要播放的歌曲
export const getplayAPI = (id: number) => {
  return request.get<any>({
    url: `/song/url`,
    params: {
      id,
    },
  });
};

// 实现代理歌曲 解锁灰暗歌曲
export const getplayGrayAPI = (id: number) => {
  return request1.get<any>({
    url: `/match?id=${id}&server=kuwo,qq,pyncmd,kugou`,
  });
};

// 获取歌词
export const getSongLyricAPI = (id: number) => {
  return request.get<any>({
    url: `/lyric`,
    params: {
      id,
    },
  });
};
